package com.treasure.mall.biz.vo.user;

import com.treasure.mall.biz.entity.user.UserPO;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * <p>
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.vo.user
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/8/12 3:18 下午
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * 
 */
@Data
@NoArgsConstructor
public class UserBasicVO {

    private Long userId;
    /**
     * 昵称反正就是昵称；可能是自定义昵称 也可能是微信昵称
     */
    private String nickName;
    /**
     * 头像地址
     */
    private String avatar;


    public UserBasicVO(UserPO userPO) {
        this.userId = userPO.getUserId();
        this.nickName = userPO.getNickName();
        this.avatar = userPO.getAvatar();
    }
}
